package com.xuanyuan.dao;

import java.util.List;

import com.xuanyuan.model.Departments;
import com.xuanyuan.model.User;
import com.xuanyuan.util.PageInfo;

public interface UserDao {
	/**
	 * @param userName
	 * @param password
	 * @return
	 */
   public Boolean isLogin(String userName, String password);
   
   
   /**
    * @return
    */
   public List<User> listUser(PageInfo pageInfo);
   
   /**
    * @return
    */
   public User selectUser(String userName);
   
   /**
    * @param user
    */
   public void addUser(User user);
   
   /**
    * @param userId
    * @param user
    */
   public void updateUser(Integer userId, String userName, String name, String department, String phone, String email);
   
   /**
    * @param userId
    * @param password
    */
   public void updatePass(Integer userId, String password);
   
   /**
    * @param userId
    */
   public void delUser(User user);
   
   
   /**
    * @param userId
    * @return
    */
   public User getUsers(Integer userId);
   
  /**
   * 
   * @param dept
   */
   public void addUserToDepartment(Departments dept);
   
   /**
    * 
    * @param password
    * @param username
    */
   public void updatePass(String password, String username);
   
   public User selectPass(String password, String username);
   
   public List<User> getListUser(String username, PageInfo pageInfo);
}
